package com.yunduansing.demo.service.impl;

import com.yunduansing.demo.entity.RoleEntity;
import com.yunduansing.demo.mapper.RoleMapper;
import com.yunduansing.demo.service.RoleService;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author yunduansing
 * @since 2020-05-24
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, RoleEntity> implements RoleService {
    @Autowired
    private RoleMapper mapper;

    @Override
    public List<RoleEntity> getListByUser(int userId) {
        return mapper.getListByUser(userId);
    }

}
